package org.grayrabbit.cms.constant;

import java.io.InputStream;
import java.util.Properties;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class RpcCode {
	
	public static final String MODULE_LOGIN="cmslogin";
	private static final Logger LOG = LoggerFactory.getLogger(RpcCode.class);

	
	/**发送人ID*/
	public static final String SMS_SEND_ID;
	
	/**短信登录名*/
	
	public static final String SMS_SEND_LOGIN_NAME;
	
	/**发送人真实姓名*/
	public static final String SMS_SEND_REAL_NAME;
	
	/**短信系统code*/
	public static final String SMS_SYSTEM_CODE;
	
	static{
		Properties prop = new Properties();
		try{
			InputStream stream = RpcCode.class.getResourceAsStream("/config.properties");
			prop.load(stream);
		}catch(Exception e){
			LOG.info("异常：{}", e);
		}
		SMS_SEND_ID=prop.getProperty("sms.send.id", "/");
		SMS_SEND_LOGIN_NAME=prop.getProperty("sms.send.login.name", "/");
		SMS_SEND_REAL_NAME=prop.getProperty("sms.send.realname", "/");
		SMS_SYSTEM_CODE=prop.getProperty("sms.send.system.code", "/");
	}
}
